﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimdTest2
{
    public class NeonLamp : Control
    {
        private readonly System.Timers.Timer _timer;
        public NeonLamp()
        {
            SetStyle(
         ControlStyles.ResizeRedraw
         | ControlStyles.DoubleBuffer
         | ControlStyles.UserPaint
         | ControlStyles.AllPaintingInWmPaint
         | ControlStyles.SupportsTransparentBackColor,
         true
         );
            this.BackColor = Color.Black;
            _timer=new System.Timers.Timer();
            _timer.Interval = 100;
            _timer.Elapsed += _timer_Elapsed;
            _timer.Start();
        }

        private void _timer_Elapsed(object? sender, System.Timers.ElapsedEventArgs e)
        {
            
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            Graphics g= e.Graphics;
            g.Smooth();



            g.Smooth(false);

        }
        protected override void OnSizeChanged(EventArgs e)
        {
            base.OnSizeChanged(e);
        }
    }
}
